//package com.sanploy.wechat.controller;
//
//import com.sanploy.wechat.service.WechatSmallService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpSession;
//import java.io.IOException;
//
///**
// * Created by zhu yingzhi on 2017/9/21.
// */
//@RestController
//@RequestMapping("/wechat")
//public class WechatSmallController {
//
//    @Autowired
//    private WechatSmallService wechatSmallService;
//    /**
//     * 用户登陆 并获取openid session_key
//     * @param code
//     * @return
//     */
//    @GetMapping("/login")
//    public Object login(@RequestParam String code, HttpSession session) throws IOException {
//        session.setAttribute("jjijijiji","asdasd");
//        return wechatSmallService.login(code,session);
//    }
//
//    @GetMapping("/getsession")
//    public Object getsession(HttpSession session) throws IOException {
//
//        return session.getAttribute("jjijijiji");
//    }
//
//
//
//}
